class UpdateTestrecords < ActiveRecord::Migration
  def self.up
  add_column :test_records , :age , :integer
  add_column :pre_test_records , :age , :integer
  add_column :test_records , :perfession, :string
  add_column :test_records , :gender , :string
  add_column :test_records , :edu_status ,:string
  add_column :pre_test_records , :perfession, :string
  add_column :pre_test_records , :gender , :string
  add_column :pre_test_records , :edu_status ,:string
  end

  def self.down
  remove_column :test_records , :age 
  remove_column :pre_test_records , :age 
  remove_column :test_records , :perfession
  remove_column :test_records , :gender 
  remove_column :test_records , :edu_status 
  remove_column :pre_test_records , :perfession
  remove_column :pre_test_records , :gender 
  remove_column :pre_test_records , :edu_status 
  end
end
